﻿/**
 * @file guild_building_logic.h
 * @date 2021/07/29 09:56
 * 
 * @author harrybao (harrybao@123u.com)
 * 
 * @brief 公会建筑逻辑
 * 
 * @version v1.0.0
 * 
 * @copyright Copyright © 2021 All Rights Reserved 上海欢乐互娱网络科技有限公司
 * 
 * @par history:
 * <table>
 * <tr><th>Date                     <th>Version     <th>Author      <th>Description
 * <tr><td>2021/07/27 10:07         <td>1.0.0       <td>harrybao    <td>创建初始版本
 * </table>
 */

#pragma once


#include "error/error_code.h"
#include "guild/guild.h"

namespace guild_service {

/**
 * @brief 公会基础功能逻辑类
 *
 */
class GuildModuleBuildingLogic {
public:
  /**
   * @brief 公会建筑升级
   * 
   * @param guild_id 公会id
   * @param guild_building_id 建筑id
   * @param ec 错误码
   * @return true 升级成功
   * @return false 升级失败
   */
  static bool BuildingUpgrade(const guild_id_type guild_id, uint32_t building_id, error_code &ec);
};

} // namespace guild_service